// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import less from 'less'
// import VueVideoPlayer from 'vue-video-player'
import Hls from 'hls.js'

// window.videojs = VueVideoPlayer.videojs
window.Hls = require('hls.js')
// import Hls from 'videojs-contrib-hls'

import $scroll from '@/utils/loading'
Vue.prototype.$scroll = $scroll
// require videojs style
// import 'video.js/dist/video-js.css'
// require('video.js/dist/lang/zh-CN.js')
Vue.use(less)
// Vue.use(Hls)
// Vue.use(VueVideoPlayer)
import VueDPlayer from 'dplayer'
// require('hls.js')
require('dplayer/dist/DPlayer.min.js')
// Vue.use(VueDPlayer);
// 设置 js中可以访问 $cdn
import { $cdn } from '@/config'
Vue.prototype.$cdn = $cdn
// 全局引入按需引入UI库 vant
import '@/plugins/vant'
// 引入全局样式
import '@/assets/css/index.scss'
// 移动端适配
import 'lib-flexible/flexible.js'
// import 'vue-video-player/src/custom-theme.css'
// import VConsole from 'vconsole';

// const vConsole = new VConsole();
// const vConsole = new VConsole({ maxLogNumber: 1000 });

// vConsole.destroy();
// filters
import './filters'
Vue.config.productionTip = false
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
